package com.hgk.common.common.util;

import android.content.Context;
import android.text.TextPaint;
import android.text.style.ClickableSpan;
import android.view.View;

import com.hgk.wanwan.photo.PhotoProcessConstants;

import width.hgk.wanwan.R;

public class SpannerClickable extends ClickableSpan {
	private Context mContext;
	private int mType;
	private String mUserid;
	public SpannerClickable(Context context,int type,String userid) {
		this.mContext=context;
		mType=type;
		mUserid = userid;
	}

	@Override
	public void updateDrawState(TextPaint ds) {
		super.updateDrawState(ds);
		ds.setUnderlineText(false);
		ds.setColor(mContext.getResources().getColor(R.color.btncolor));
	}
	@Override
	public void onClick(View widget) {
		switch (mType) {
		case PhotoProcessConstants.SPANNABLE_PROFILE_TYPE:
//			CoachProfileActivity.lanuch(mContext,mUserid);
			break;
		case PhotoProcessConstants.SPANNABLE_MESSAGE_TYPE:
		default:
			break;
		}

	}

}
